const routes = [
  {
    path: '/',
    // 重定向
    redirect: '/home'
  },
  {
    // vue-router@3
    // path:'*'
    // vue-router@4
    path: '/:pathMatch(.*)',
    name: 'notfound',
    component: () => import('@/views/notfound/index.vue'),
    meta: {
      title: '404页面'
    }
  }
]

export default routes
